package com.ruoyi.project.zxcrm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 客户订单对象 crm_order
 *
 * @author mn
 * @date 2022-12-30
 */
@Data
public class CrmOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long id;

    /** 客户 */
    @Excel(name = "客户id")
    private Long customerId;

    /** 客户 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 客户 */
    @Excel(name = "手机号")
    private String mobile;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal quantity;

    /** 产品 */
    @Excel(name = "产品")
    private Long productId;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal money;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 订单开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 订单结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 已收金额 */
    @Excel(name = "已收金额")
    private BigDecimal receivedMoney;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 销售 */
    @Excel(name = "销售")
    private Long sales;

}
